import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/withdrawal',
    name: 'withdrawal',
    component: () => import("@/pages/withdrawal/index.vue")
  },
  {
    path: '/recharge',
    name: 'recharge',
    component: () => import("@/pages/recharge/index.vue")
  },
  {
    path: '/recharge/record',
    name: 'rechargeRecord',
    component: () => import("@/pages/recharge/record.vue")
  },
  {
    path: '/recharge/detail',
    name: 'rechargeDetail',
    component: () => import("@/pages/recharge/detail.vue")
  },
  {
    path: '/withdrawal/record',
    name: 'withdrawalRecord',
    component: () => import("@/pages/withdrawal/record.vue")
  },
  {
    path: '/withdrawal/detail',
    name: 'withdrawalDetail',
    component: () => import("@/pages/withdrawal/detail.vue")
  },
  {
    path: '/',
    name: 'home',
    component: () => import("@/pages/home/index.vue")
  },
  {
    path: '/games',
    name: 'games',
    component: () => import("@/pages/games/index.vue")
  },
  {
    path: '/play',
    name: 'play',
    component: () => import("@/pages/games/play.vue")
  },
  {
    path: '/me',
    name: 'me',
    component: () => import("@/pages/me/index.vue")
  },
  {
    path: '/mybet',
    name: 'mybet',
    component: () => import("@/pages/me/mybet.vue")
  },
  {
    path: '/myteam',
    name: 'myteam',
    component: () => import("@/pages/me/myteam.vue")
  },
  {
    path: '/bindemail',
    name: 'BindEmail',
    component: () => import("@/pages/me/bindemail.vue")
  },
  {
    path: '/kf',
    name: 'kf',
    component: () => import("@/pages/me/kf.vue")
  },
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
export default router
